#include "errorcode.h"

Errorcode::Errorcode(const Errorcode& e)
{
  module       = e.module;
  error_id     = e.error_id;
  sdescription = e.sdescription;
  ldescription = e.ldescription;
}

Errorcode::Errorcode(Module m, long eid, std::string sd, std::string ld)
{
  module       = m;
  error_id     = eid;
  sdescription = sd;
  ldescription = ld;
}

Errorcode::~Errorcode()
{
}

void Errorcode::setModule(Module m)
{
  module = m;
}

Module Errorcode::getModule()
{
  return module;
}

void Errorcode::setShortDescription(std::string descr)
{
  sdescription = descr;
}

std::string Errorcode::getShortDescription()
{
  return sdescription;
}

void Errorcode::setLongDescription(std::string descr)
{
  ldescription = descr;
}

std::string Errorcode::getLongDescription()
{
  return ldescription;
}

void Errorcode::setErrorID(long id)
{
  error_id = id;
}

long Errorcode::getErrorID()
{
  return error_id;
}

bool Errorcode::operator == (const Errorcode& e)
{
  return error_id == e.error_id;
}
